package com.zc.study.thread.多线程第三章节.thread3_1_2;

public class WaitTest1 {
    public static void main(String[] args) {
        String lock = new String();
        System.out.println("start");
        synchronized (lock){
            System.out.println("锁住开始");
            try {
                lock.wait();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("等待结束");
        }
        System.out.println("等待结束");
    }
}
